package vo;

import service.IBookService;
import service.Impl.IBookServiceImpl;

public class CartLine {
    private IBookService bookService = new IBookServiceImpl();

    private int id;
    private int cartId;
    private int bookId;
    private int quanlity;

    public CartLine() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCartId() {
        return cartId;
    }

    public void setCartId(int cartId) {
        this.cartId = cartId;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public int getQuanlity() {
        return quanlity;
    }

    public void setQuanlity(int quanlity) {
        this.quanlity = quanlity;
    }


    public Book getBook() {
        return bookService.selectBookById(bookId);
    }
}
